#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class StaffTrain : Business.BusinessBase<StaffTrain, int>
	{
		#region Fields and Properties

		private String trainDegree = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TrainDegree
		{
			get { return trainDegree; }
			set
			{
				if (value != trainDegree)
				{
					MarkChanged("TrainDegree");
					trainDegree = value;
				}
			}
		}

		private String trainCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TrainCate
		{
			get { return trainCate; }
			set
			{
				if (value != trainCate)
				{
					MarkChanged("TrainCate");
					trainCate = value;
				}
			}
		}

		private String trainSate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TrainSate
		{
			get { return trainSate; }
			set
			{
				if (value != trainSate)
				{
					MarkChanged("TrainSate");
					trainSate = value;
				}
			}
		}

		private DateTime stopDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime StopDate
		{
			get { return stopDate; }
			set
			{
				if (value != stopDate)
				{
					MarkChanged("StopDate");
					stopDate = value;
				}
			}
		}

		private Decimal consistTime = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal ConsistTime
		{
			get { return consistTime; }
			set
			{
				if (value != consistTime)
				{
					MarkChanged("ConsistTime");
					consistTime = value;
				}
			}
		}

		private DateTime trainStartDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime TrainStartDate
		{
			get { return trainStartDate; }
			set
			{
				if (value != trainStartDate)
				{
					MarkChanged("TrainStartDate");
					trainStartDate = value;
				}
			}
		}

		private String trainName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TrainName
		{
			get { return trainName; }
			set
			{
				if (value != trainName)
				{
					MarkChanged("TrainName");
					trainName = value;
				}
			}
		}

		private String code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Code
		{
			get { return code; }
			set
			{
				if (value != code)
				{
					MarkChanged("Code");
					code = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public StaffTrain()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override StaffTrain DataSelect(int id)
		{
			return Services.DALService.StaffTrainService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.StaffTrainService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.StaffTrainService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.StaffTrainService.Delete(this);
		}

		#endregion Base overrides
	}
}
